package com.jy.importclient.handler;

import com.jy.importclient.common.util.FactoryBeanUtil;
import com.jy.importclient.common.vo.ReturnVo;
import com.jy.importclient.support.HttpSupport;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @类名 FixTimeTaskHandler
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/4/23 17:52
 * @版本 1.0
 */
@DisallowConcurrentExecution
public class ScheduledTaskHandler extends QuartzJobBean {

    @Override
    protected void executeInternal(JobExecutionContext context) {
        HttpSupport httpSupport = FactoryBeanUtil.getBean(HttpSupport.class);
        httpSupport.send(ReturnVo.ok().put("flag", "get"));
    }
}
